import { defineStore } from 'pinia'
import{ ref } from 'vue'
export const useAppStore = defineStore('app', {
  state: () => ({
    isLoggedIn: false,
    userInfo: null,
    uid: 0,
    block:"",
  }),
  actions: {
    setLogin(status: boolean) {
      this.isLoggedIn = status
    },
    setUserInfo(info: any) {
      this.userInfo = info
    },
    setUid(uid: number) {
      this.uid = uid
    },
    setBlock(block: string) {
      this.block = block
    },

  }
})